Skip to content

feat: run the FL example on the four EOC sites - #154

Merged
uniqueg merged 2 commits into
devfrom
feat/fl-four-sites
Dec 2, 2026
Merged

uniqueg merged 2 commits into
devfrom
feat/fl-four-sites

Conversation

@uniqueg

@uniqueg uniqueg commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Summary

The NVFlare hub of ELIXIR On-Cloud renames its sites after their TES implementation and Node, each with its own share of the synthetic test data:

Site TES Data share
tesk-fi TESK, FI Node site-1.csv
tesk-cz TESK, CZ Node site-2.csv
poiesis-fi Poiesis, FI Node site-3.csv
poiesis-cz Poiesis, CZ Node site-4.csv

The Federated learning example now submits the four-site job logreg-fedavg-4 with {"sites": ["tesk-fi", "tesk-cz", "poiesis-fi", "poiesis-cz"]}: two TES implementations at two Nodes. Unit test, E2E test (and its WORKFLOW_EXAMPLES fixture) and the user guide (docs/user-guide/index.md, workflow-examples.md) follow.

Closes #153

Merge gate

Merge right after the hub's sites are switched (h5 apply), same evening. Before the switch, the hub doesn't know tesk-fi and tesk-cz; after it, it no longer knows site-1 and site-2. Small Krini PR merged without the maintainer while he is away (D-514).

Verification

  • bun run test: first the changed unit test failed against the old example (red), then 24 files, 502 tests passed.
  • bun run lint (Biome): passed.
  • E2E (Playwright) not run locally; CI runs it.
  • CI: all checks passed (gate "CI passed" green), Sourcery threads answered and resolved.

Review lane

Light lane: the change is a default value (the built-in example's job and site names) plus its tests and docs; no logic, auth or security code.

Declined review findings

None.

Open questions

None.

🤖 Generated with Claude Code

The NVFlare hub of ELIXIR On-Cloud names its sites after their TES
implementation and Node (tesk-fi, tesk-cz, poiesis-fi, poiesis-cz),
each with its own data share; site-1 and site-2 go away. The
Federated learning example now submits the four-site job
logreg-fedavg-4 on all four sites: two TES implementations at two
Nodes. Tests and the user guide follow.

Closes #153

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@uniqueg uniqueg self-assigned this Dec 2, 2026
@codecov

codecov Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0d66739) to head (6708dd0).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #154   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           30        30           
  Lines         1040      1040           
  Branches       301       301           
=========================================
  Hits          1040      1040           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@read-the-docs-community

read-the-docs-community Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

📖 2 files modified


Preview · build overview · krini · built Dec. 2, 2026, 7:01 p.m. UTC

@sourcery-ai

sourcery-ai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

UI

Update the built-in Federated learning example to submit the four-site logreg-fedavg-4 job.

  • src/lib/examples.ts L141, L191-198

Documentation

Document the four-site job, site names, and parameters in the user guide.

  • docs/user-guide/index.md L44-47
  • docs/user-guide/workflow-examples.md L103-105, L111-126

Tests

Update unit and end-to-end expectations and fixtures to match the built-in four-site example.

  • e2e/examples.spec.ts L121, L135-144
  • e2e/settings.ts L54-59
  • src/lib/examples.test.ts L370-375

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@uniqueg
uniqueg marked this pull request as ready for review December 2, 2026 18:38
@uniqueg
uniqueg requested a review from AnonymousXC as a code owner December 2, 2026 18:38
@sourcery-ai

sourcery-ai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Linked issues

Checked at commit 6708dd0

#153 feat: run the FL example on the four EOC sites · 3 of 3 met

# Requirement Status Notes
1 The Federated learning example submits logreg-fedavg-4 with all four named sites. ✅ Met The built-in example uses logreg-fedavg-4 and the sites tesk-fi, tesk-cz, poiesis-fi, and poiesis-cz.
2 Unit and E2E tests, including the WORKFLOW_EXAMPLES fixture, say the same. ✅ Met The unit expectation, E2E submission expectation, and fixture use the four-site job and site list.
3 The user guide pages index.md and workflow-examples.md say the same. ✅ Met Both pages use the four-site job and site list; workflow-examples.md also explains the site and job options.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 2 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="src/lib/examples.ts" line_range="197" />
<code_context>
             workflow_type_version: "2.9",
-            workflow_params: { sites: ["site-1", "site-2"] },
+            workflow_params: {
+                sites: ["tesk-fi", "tesk-cz", "poiesis-fi", "poiesis-cz"],
+            },
         },
</code_context>
<issue_to_address>
**Old site names cause rejected runs**

When the hub stops accepting the old site names while an older pod or an already-open form still submits them, the form submits `site-1` or `site-2`, which the hub no longer recognizes, and the user sees a rejected run.

Keep the old site names accepted until older pods and already-open forms can no longer submit them.
</issue_to_address>

### Comment 2
<location path="src/lib/examples.ts" line_range="191" />
<code_context>
         name: "Federated learning",
         description:
-            "NVFlare demo job logreg-fedavg: trains a model at two sites with federated averaging",
+            "NVFlare demo job logreg-fedavg-4: trains a model at four sites with federated averaging",
         run: {
-            workflow_url: "logreg-fedavg",
</code_context>
<issue_to_address>
**Source comment misstates site count**

The built-in example now describes and submits a four-site run, but the adjacent source comment still calls it a run at two sites, misleading maintainers about the example's intended configuration.

Update the source comment to describe the four-site job.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: src/lib/examples.ts:197


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread src/lib/examples.ts Resolved
Comment thread src/lib/examples.ts Resolved
Refs #153

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@uniqueg
uniqueg merged commit 88d787e into dev Dec 2, 2026
59 checks passed
@uniqueg
uniqueg deleted the feat/fl-four-sites branch December 2, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: run the FL example on the four EOC sites

1 participant